package com.byxy.service.impl;

import com.byxy.mapper.CollectionMapper;
import com.byxy.po.Collection;
import com.byxy.service.CollectionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CollectionServiceImpl implements CollectionService<Collection> {


    @Resource
    private CollectionMapper collectionMapper;

    @Override
    public int deleteByPrimaryKey(Collection key) {
        return collectionMapper.deleteByPrimaryKey(key);
    }

    @Override
    public int insert(Collection record) {
        return collectionMapper.insert(record);
    }

    @Override
    public int insertSelective(Collection record) {
        return collectionMapper.insertSelective(record);
    }

    @Override
    public Collection selectOne(Collection record) {
        return collectionMapper.selectOne(record);
    }

    @Override
    public int updateByPrimaryKey(Collection record) {
        return collectionMapper.updateByPrimaryKey(record);
    }
}
